package com.ykq.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @program: qy137-back
 * @description: 员工实体类
 * @author: 闫克起
 * @create: 2021-08-27 16:12
 **/
@Data
@TableName(value="staff")
public class Staff {
    @TableId
    private Integer stId;
    private Integer staffId;
    private String staffName;
    private String password;
    private String staffSex;
    private String staffIdcard;
    @TableField(value = "staff_telPhone")
    private String telPhone;
    @TableField(value = "staff_address")
    private String address;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @TableField(value = "staff_indate")
    private Date inDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @TableField(value = "staff_outdate")
    private Date outDate;
    private Integer branchId;
    private Integer roleId;
    @TableField(value = "imgurl")
    private String imgUrl;
}
